from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QMessageBox
from ui_py.success_ui import Ui_Dialog
import glob
from validation import valid_filename

class Success(QtWidgets.QDialog, Ui_Dialog):
    def __init__(self):
        QtWidgets.QDialog.__init__(self)
        self.setupUi(self)
        self.pushButton.clicked.connect(self.closeIt)
    def closeIt(self):
        self.close()
        # if self.label2 == "":
        #     msg = QMessageBox()
        #     msg.critical(None, "Ошибка", "Вы не ввели значение")
        #     event.ignore()